package com.mc.lp.database.service.handler.util;
/*
 * @author aphanda
 * @date Mar 21, 2015
 * @time 5:36:54 PM
 */

public class GenericAggregator {

	private int gradeId;
	/**
	 * for ExtraAcads certificationId. for Sports sportsId, for socialBehave SocialBehaviourId
	 */
	private Long keyIdentifier;
	private int weightage;
	private int totalTerm;
	private int position;
	private Long recordTypeId;
	
	public int getGradeId() {
		return gradeId;
	}

	public void setGradeId(int gradeId) {
		this.gradeId = gradeId;
	}
	public Long getKeyIdentifier() {
		return keyIdentifier;
	}
	public void setKeyIdentifier(Long keyIdentifier) {
		this.keyIdentifier = keyIdentifier;
	}
	public int getWeightage() {
		return weightage;
	}
	public void setWeightage(int weightage) {
		this.weightage = weightage;
	}
	public int getTotalTerm() {
		return totalTerm;
	}
	public void setTotalTerm(int totalTerm) {
		this.totalTerm = totalTerm;
	}
	public int getPosition() {
		return position;
	}
	public void setPosition(int position) {
		this.position = position;
	}
	public Long getRecordTypeId() {
		return recordTypeId;
	}
	public void setRecordTypeId(Long recordTypeId) {
		this.recordTypeId = recordTypeId;
	}

	@Override
	public String toString() {
		return "GenericAggregator [gradeId=" + gradeId + ", "
				+ (keyIdentifier != null ? "keyIdentifier=" + keyIdentifier + ", " : "")
				+ "weightage=" + weightage + ", totalTerm=" + totalTerm + ", position=" + position
				+ ", recordTypeId=" + recordTypeId + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + gradeId;
		result = prime * result + ((keyIdentifier == null) ? 0 : keyIdentifier.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GenericAggregator other = (GenericAggregator) obj;
		if (gradeId != other.gradeId)
			return false;
		if (keyIdentifier == null) {
			if (other.keyIdentifier != null)
				return false;
		} else if (!keyIdentifier.equals(other.keyIdentifier))
			return false;
		if (recordTypeId != other.recordTypeId)
			return false;
		return true;
	}
	
	

	
	
	
}


